<form name="buildingsForm">
<div class="mt20">
    <div class="table-header clearfix" style="height: 20px;">
        <span class="bulidings-title">楼盘详情：</span>
    </div>
    <table width="100%" class="mt15">
        <tr>
            <td width="135" align="right" class="form-cell" valign="top"><span class="c-red">* </span>楼盘名称：</td>
            <td class="cell-split-s">
                <input type="text" name="building_name" ng-model="building.name" class="input-text fl mr10" value="" required dblength="40" style="width:400px">
                <p class="c-gray lh30">最多20个汉字</p>
                <div ng-messages="buildingsForm.building_name.$error"
                     ng-show="buildingsForm.$submitted || buildingsForm.building_name.$touched">
                    <p class="c-red lh30" ng-message="required">请填写楼盘名称。</p>
                    <p class="c-red lh30" ng-message="maxdblength">最多20个汉字。</p>
                </div>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">楼盘均价：</td>
            <td class="cell-split">
                <input type="text" name="average" ng-model="building.average" custom-float  class="input-text fl mr10" value="" style="width:400px">

            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>楼盘地址：</td>
            <td class="cell-split">
                <div class="clearfix">
                    <input type="text" class="fl input-text mr10" disabled ng-model="building.com_address" style="width:200px">
                    <input type="text" placeholder="片区" name="area" class="fl input-text mr10" ng-model="building.area" style="width:190px">
                </div>
                <div class="mt10">
                    <input type="text" placeholder="详细地址" name="address" class="input-text fl mr10" value="" ng-model="building.address" required="" style="width:400px">
                    <div ng-messages="buildingsForm.address.$error"
                         ng-show="buildingsForm.$submitted || buildingsForm.address.$touched">
                        <p class="c-red lh30" ng-message="required">请填写楼盘地址。</p>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>楼盘地图：</td>
            <td class="cell-split">
                <span class="fl" style="width:212px">纬度 <input type="text" id="latitude" name="latitude" ng-model="building.latitude" class="input-text" value="" style="width:160px" required readonly></span>
                <span class="fl" style="width:200px">经度 <input type="text" id="longitude" name="longitude" ng-model="building.longitude" class="input-text" value="" style="width:160px" required readonly></span>
                <span id="sel_location" class="c-blue lh30 cursor" ng-click="selLocation()">在地图中查看/设置</span>
                <div ng-messages="buildingsForm.latitude.$error"
                     ng-show="buildingsForm.$submitted">
                    <p class="c-red lh30" ng-message="required">请填写楼盘地图。</p>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>售楼电话：</td>
            <td class="cell-split">
                <input type="text" name="sale_phone" ng-model="building.sale_phone" class="input-text fl mr10" value="" required style="width:400px" >
                <div ng-messages="buildingsForm.sale_phone.$error"
                     ng-show="buildingsForm.$submitted || buildingsForm.sale_phone.$touched">
                    <p class="c-red lh30" ng-message="required">请填写售楼电话。</p>
                </div>
            </td>
        </tr>
    </table>
</div>
<div class="mt20">
    <div class="table-header clearfix" style="height: 20px;">
        <span class="bulidings-title">楼盘参数：</span>
    </div>
        <table width="100%" class="mt15">
            <tr>
                <td width="135" align="right" class="form-cell" valign="top">开盘时间：</td>
                <td class="cell-split-s">
                    <input type="text" name="open_date" ui-date ng-model="building.open_date" class="input-text input-data fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">物业类型：</td>
                <td class="cell-split">
                    <input type="text" ng-model="building.property_type" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">建筑类型：</td>
                <td class="cell-split">
                    <input type="text" ng-model="building.building_type" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">建筑面积：</td>
                <td class="cell-split">
                    <input type="text" ng-model="building.building_area" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">户数：</td>
                <td class="cell-split">
                    <input type="text" id="households" name="households" ng-model="building.house_holds" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">车位数：</td>
                <td class="cell-split"><input type="text" id="parking_number" name="parking_number" ng-model="building.parking_number" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">容积率：</td>
                <td class="cell-split"><input type="text" id="plot_radio" name="plot_radio" ng-model="building.plot_radio" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">绿化率：</td>
                <td class="cell-split"><input type="text" id="green_rate" name="green_rate" ng-model="building.green_rate" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">装修情况：</td>
                <td class="cell-split"><input type="text" id="decorate" name="decorate" ng-model="building.decorate" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">开发商：</td>
                <td class="cell-split"><input type="text" id="developers" name="developers" ng-model="building.developers" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">物业公司：</td>
                <td class="cell-split"><input type="text" id="property_company" name="property_company" ng-model="building.property_company" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top">物业费：</td>
                <td class="cell-split"><input type="text" id="property_fee" name="property_fee" ng-model="building.property_fee" class="input-text fl mr10" value="" style="width:400px">
                </td>
            </tr>
            <tr>
                <td align="right" class="form-cell" valign="top"></td>
                <td><span class="c-gray">以上参数不填表示"待定"</span></td>
            </tr>
        </table>
</div>
<button href="javascript:;" class="fr mt15 btn permission p-0000200102-01-inline-block" id="btn_save" ng-disabled="canEdit==0||!curProjectId" ng-click="save()">保存</button>
</form>